package com.chinasoft.ms.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CarWithUser {
    private Long id;
    private Long carId;
    private Long userId;
    private Car car;      // 车辆信息
    private User user;    // 用户信息
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalStart;

    /**
     * 租赁结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rentalEnd;
    private Integer extensionCount;
}
